package com.eboss.sbs.model;


import com.eboss.sbs.model.db.OrderDetail;

import java.io.Serializable;


public class OrderDetailEntity implements Serializable {
	
	private static final long serialVersionUID = 1L;
	
	private	int	id	;					//交易ID
	private	String	tradeOrderNo	;	//交易订单号
	private	int	state	;				//交易状态
	private	int	payType	;				//付款方式
	private	int	tradeMoney	;			//交易金额
	private	int	realMoney	;			//实收金额
	private	String	memberName	;		//会员名称
	private	String	terminalSn	;		//终端号
	private	String	terminalName;		//终端名称
	private	int	pointCost	;			//核销积分数
	private	String	benefit	;			//优惠
	private	long	tradeTime	;		//交易时间
	private	int	count;					//当前会员本月消费次数
	
	private String point_url;			//积分二维码
	private String coupon_url;			//优惠券二维码
	private int point;					//本次产生的积分额度
	private int pointCurrent;			//当前剩余积分
	
	public OrderDetailEntity(OrderDetail data) {
		this.tradeOrderNo = data.getTradeOrderNo();
		this.state = data.getState();
		this.payType = data.getPayType();
		this.tradeMoney = data.getTradeMoney();
		this.realMoney = data.getRealMoney();
		this.memberName = data.getMemberName();
		this.terminalSn = data.getTerminalSn();
		this.terminalName = data.getTerminalName();
		//this.pointCost = data.getPointCost();
		this.benefit = data.getBenefit();
		this.tradeTime = data.getTradeTime();
		
		this.point_url = data.getPoint_url();
		this.coupon_url = data.getCoupon_url();
		this.point = data.getPoint();
		this.pointCurrent = data.getPointCurrent();
		
	}
	
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getTradeOrderNo() {
		return tradeOrderNo;
	}
	public void setTradeOrderNo(String tradeOrderNo) {
		this.tradeOrderNo = tradeOrderNo;
	}
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
	public int getPayType() {
		return payType;
	}
	public void setPayType(int payType) {
		this.payType = payType;
	}
	public int getTradeMoney() {
		return tradeMoney;
	}
	public void setTradeMoney(int tradeMoney) {
		this.tradeMoney = tradeMoney;
	}
	public int getRealMoney() {
		return realMoney;
	}
	public void setRealMoney(int realMoney) {
		this.realMoney = realMoney;
	}
	public String getMemberName() {
		return memberName;
	}
	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}
	public String getTerminalSn() {
		return terminalSn;
	}
	public void setTerminalSn(String terminalSn) {
		this.terminalSn = terminalSn;
	}
	public String getTerminalName() {
		return terminalName;
	}
	public void setTerminalName(String terminalName) {
		this.terminalName = terminalName;
	}
	public int getPointCost() {
		return pointCost;
	}
	public void setPointCost(int pointCost) {
		this.pointCost = pointCost;
	}
	public String getBenefit() {
		return benefit;
	}
	public void setBenefit(String benefit) {
		this.benefit = benefit;
	}
	public long getTradeTime() {
		return tradeTime;
	}
	public void setTradeTime(long tradeTime) {
		this.tradeTime = tradeTime;
	}
	public int getCount() {
		return count;
	}
	public void setCount(int count) {
		this.count = count;
	}

	public String getPoint_url() {
		return point_url;
	}

	public void setPoint_url(String point_url) {
		this.point_url = point_url;
	}

	public String getCoupon_url() {
		return coupon_url;
	}

	public void setCoupon_url(String coupon_url) {
		this.coupon_url = coupon_url;
	}

	public int getPoint() {
		return point;
	}

	public void setPoint(int point) {
		this.point = point;
	}

	public int getPointCurrent() {
		return pointCurrent;
	}

	public void setPointCurrent(int pointCurrent) {
		this.pointCurrent = pointCurrent;
	}
	
}
